﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ReduceTasks.aspx.cs" Inherits="KMeansWebRole.ReduceTasks" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

    <style type="text/css">
        .style5 { font-size: small; }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <strong><span class="style5">Reduce Tasks for </span></strong>
    <asp:Label ID="Label1" runat="server" 
               style="font-weight: 700;" Text="JobID :" Width="55px" 
               CssClass="style5"></asp:Label>
    <asp:Label ID="Label2" runat="server" 
               style="font-weight: 700" CssClass="style5"></asp:Label>
    &nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        DataSourceID="ReducaTaskDataSource" Width="95%">
              <Columns>
                  <asp:BoundField DataField="PartitionKey" HeaderText="i" 
                                  SortExpression="PartitionKey" />
                  <asp:BoundField DataField="AppName" HeaderText="App" 
                                  SortExpression="AppName" />
                  <asp:BoundField DataField="RowKey" HeaderText="Map ID" 
                                  SortExpression="RowKey" />
                  <asp:BoundField DataField="Attempt1StartTime" HeaderText="Attempt1StartTime" 
                                  SortExpression="Attempt1StartTime" />
                  <asp:BoundField DataField="EndTime" HeaderText="EndTime" 
                                  SortExpression="EndTime" />
                  <asp:BoundField DataField="TaskStatus" HeaderText="TaskStatus" 
                                  SortExpression="TaskStatus" />
                  <asp:BoundField DataField="Timestamp" HeaderText="Timestamp" 
                                  SortExpression="Timestamp" />
              </Columns>
          </asp:GridView>
    
    <asp:ObjectDataSource ID="ReducaTaskDataSource" runat="server" 
                          SelectMethod="GetReduceTasks" 
                          TypeName="AzureMRCore.DataModel.ReduceTaskDataSource">
        <SelectParameters>
            <asp:QueryStringParameter Name="jobID" QueryStringField="JobID" 
                                      Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</span>
</asp:Content>